import { resolve } from 'path'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { externalizeDeps } from 'vite-plugin-externalize-deps'

export default defineConfig({
  plugins: [vue(), externalizeDeps()],
  build: {
    lib: {
      entry: resolve(__dirname, 'src/index.js'),
      name: 'vue3-babylonjs',
      fileName: 'vue3-babylonjs',
    },
  },
})
